import threading, time


def worker(delay):  # 线程处理函数
    for num in range(50):
        time.sleep(delay)
        print(f"【{threading.current_thread().name}】线程执行计数：{num}")


def main():
    worker_threads = [threading.Thread(target=worker, args=(1,), name=f"HanduoduoThead- {item}") for item in range(10)]

    # 线程启动
    for thread in worker_threads:
        thread.start()


if __name__ == '__main__':
    main()
